package ch03;
import java.util.Scanner;
import java.util.Random;
/**
 * Created by hasee on 2017/6/17.
 */
public class Name {
    public static void main(String[] args) {
        String 姓氏,名字,a,b;
        Scanner scan = new Scanner(System.in);
        System.out.println("输入你的姓氏：");
        姓氏 = scan.nextLine();
        System.out.println("输入你的名字：");
        名字 = scan.nextLine();
        a = 姓氏.substring(0);
        b = 名字.substring(0,5);
        Random generator = new Random();
        int c;
        c = generator.nextInt(90)+10;
        System.out.println("新的用户名为："+a+b+c );


    }
}
